#pragma once
#include <QQuickItem>
#include "PropertyHelper.h"
class RoundItem : public QQuickItem
{
    Q_OBJECT
    AUTO_PROPERTY(float, radius, 0.0)

    using Super = QQuickItem;

    QML_NAMED_ELEMENT(RectangleItem)
public:
    RoundItem(QQuickItem *parent = nullptr);
    virtual ~RoundItem();


protected:
    virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
private:
    bool mRadiusChanged = true;
    bool mGeometryChanged = true;
};
